#include "GlSpotLight.h"

#include "Utility.h"

namespace GraphicLibrary
{
	//-------------------------------------------
	SpotLight::Factory::~Factory()
	{
	}
}

namespace GraphicLibrary
{
	//-------------------------------------------
	SpotLight::Factory *SpotLight::msFactory(0);
	//-------------------------------------------
	SpotLight::~SpotLight()
	{
	}

	//-------------------------------------------
	SpotLight* SpotLight::Create(const float angle, const float distance)
	{
		if(angle >= Utility::Pi || angle <= 0.0f || distance <= 0.0f)
			return 0;
		return msFactory->create(angle, distance);
	}
}
